<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	申请单位科研设备、科研成果情况
</div>
<div class="t_bar">
	<span class="color_red">*</span>现有主要仪器设备清单
</div>
	<table  id="tblInstrumentList" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="40%">名称</th>
						<th class="TblHead" align="center"  width="20%">型号</th>
						<th class="TblHead" align="center"  width="15%">规格</th> 
						<th class="TblHead" align="center"  width="15%">价格（万元）</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center"><input type="radio" class="radiobutton" name="selInstrumentList" ></td>
						<td align="center"><span name="instrument_list|instrument[0]@seq_no" >[index]</span></td>
						<td>
							<input type="text" name="instrument_list|instrument[0]|name" label="名称" style="width:80%;" class="required input_text " maxlength="50"/>
						</td>
						<td>
							<input type="text" name="instrument_list|instrument[0]|model" label="型号" style="width:80%;" class="required input_text " maxlength="50"/>
						</td> 
						<td>
							<input type="text" name="instrument_list|instrument[0]|standard" label="规格" style="width:80%;" class="required input_text " maxlength="50"/>
						</td> 
						<td>
							<input type="text" name="instrument_list|instrument[0]|price" label="价格" onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;width:80%;" class="required input_text" />
						</td> 
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/instrument_list/instrument" var="instrument">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center"><input type="radio" class="radiobutton" name="selInstrumentList" ></td>
						<td align="center"><span name="instrument_list/instrument[${flag}${index}]@seq_no" ><x:out select="$instrument/@seq_no"/></span> 
						</td>
						<td>
							<input type="text" name="instrument_list/instrument[${flag}${index}]/name" label="名称" style="width:80%;" required  class="required input_text " value="<x:out select="$instrument/name" />" maxlength="50"/>
						</td>
						<td >
							<input type="text" name="instrument_list/instrument[${flag}${index}]/model" label="型号" style="width:80%;" required class="required input_text " value="<x:out select="$instrument/model" />" maxlength="50"/>
						</td> 
						<td >
							<input type="text" name="instrument_list/instrument[${flag}${index}]/standard" label="规格" style="width:80%;" required class="required input_text " value="<x:out select="$instrument/standard" />" maxlength="50"/>
						</td> 
						<td >
							<input type="text" name="instrument_list/instrument[${flag}${index}]/price" label="价格" onfocus="InitInput.setNumber(this,7,4,2)"  style="text-align:right;width:80%;" required class="required input_text" value="<x:out select="$instrument/price" />"/>
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblInstrumentList");
					</script>
				</tbody>
					</table>
					<br>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" 
						onclick="if(checkTabLimit('tblInstrumentList',10,'现有主要仪器设备清单最多只能填写10条')){addNewRow('tblInstrumentList');showDateTag('tblInstrumentList');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblInstrumentList','selInstrumentList')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblInstrumentList','selInstrumentList')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblInstrumentList','现有主要仪器设备清单')">
					</td></tr>
	</table>
<br/>

<div class="t_bar">
	<span class="color_red">*</span>注册成立之日起承担的政府科研项目
</div>
	<table  id="tblGovProjectList" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="50px">选择</th>
						<th class="TblHead" align="center"  width="50px">序号</th>
						<th class="TblHead" align="center"  width="250px">项目名称</th>
						<th class="TblHead" align="center"  width="250px">资助部门</th>
						<th class="TblHead" align="center"  width="150px">资助金额（万元）</th> 
						<th class="TblHead" align="center"  width="150px">资助时间</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center"><input type="radio" class="radiobutton" name="selGovProjectList" ></td>
						<td align="center"><span name="gov_project_list|project[0]@seq_no" >[index]</span> </td>
						<td>
							<input type="text" name="gov_project_list|project[0]|zh_title" label="项目名称" style="width:200px;" required class="required input_text maxlength:50" maxlength="50"/>
						</td>
						<td>
							<input type="text" name="gov_project_list|project[0]|grant_department" label="资助部门" style="width:200px;" required class="required input_text maxlength:50" maxlength="50"/>
						</td> 
						
						<td>
							<input type="text" name="gov_project_list|project[0]|grant_sum" label="资助金额" onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;width:100px;" required class="required input_text maxlength:50" maxlength="50"/>
						</td> 
						<td>&nbsp;
							<input  id="gov_project_list_grant_date_[0]" name="gov_project_list|project[0]|grant_date" required class="required input_text date" style="width:70px" label="资助时间" />
						</td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/gov_project_list/project" var="project">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center"><input type="radio" class="radiobutton" name="selGovProjectList" ></td>
						<td align="center"><span   name="gov_project_list/project[${flag}${index}]@seq_no" ><x:out select="$project/@seq_no"/></span> 
						</td>
						<td >
							<input type="text" name="gov_project_list/project[${flag}${index}]/zh_title" label="项目名称" required style="width:200px;" required class="required input_text maxlength:50" value="<x:out select="$project/zh_title" />" maxlength="50"/>
						</td>
						<td >
							<input type="text" name="gov_project_list/project[${flag}${index}]/grant_department" label="资助部门" style="width:200px;" required class="required input_text maxlength:50" value="<x:out select="$project/grant_department" />" maxlength="50"/>
						</td> 
						<td >
							<input type="text" name="gov_project_list/project[${flag}${index}]/grant_sum" label="资助金额" onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;width:100px;" required class="required input_text maxlength:10" value="<x:out select="$project/grant_sum" />" maxlength="10"/>
						</td> 
						<td >&nbsp;
							<c:set var="grant_date" scope="page"><x:out select="$project/grant_date"/></c:set>
							<input  id="gov_project_list_grant_date_[${flag}${index}]" value="${grant_date}" label="资助时间" name="gov_project_list/project[${flag}${index}]/grant_date" required class="required date input_text"  style="width:70px"/> 
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblGovProjectList");
					</script>
				</tbody>
					</table>
					<br>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblGovProjectList',10,'承担的政府科研项目最多只能填写10条')){addNewRow('tblGovProjectList');showDateTag('tblGovProjectList');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblGovProjectList','selGovProjectList')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblGovProjectList','selGovProjectList')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblGovProjectList','项目信息')">
					</td></tr>
	</table>
	
<br/>
<div class="t_bar">
	<span class="color_red">*</span>申请单位发展规划报告（摘要，限1000字）
</div>
<table  id="orgDevProposal" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
	<tr>
		<td>未来3到5年发展规划报告摘要</td>
	</tr>
	<tr>
		<td>
			<textarea name="unit/development_plan" rows="8" cols="170" class="input_textarea required maxlength:1000 textarea"    label="申请单位发展规划报告->未来3到5年发展规划" ><x:out select="$xmlData/data/unit/development_plan"/></textarea>
		    <input name="unit/development_plan_hidden" value="" type="hidden"/>
		</td>
	</tr>
				
</table>
